class CreatePrestamos < ActiveRecord::Migration
  def self.up
    create_table :prestamos do |t|
      t.date :fecha
      t.references :usuario
      t.integer :cuotas
      t.text :motivo
      t.decimal :tasa, :precision => 15, :scale => 2
      t.decimal :saldo, :precision => 15, :scale => 2
      t.decimal :total, :precision => 15, :scale => 2

      t.timestamps
    end
  end

  def self.down
    drop_table :prestamos
  end
end
